package com.tbvtc.agriculturalcreditchainserver2025.dto.Cart;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;



@Data
public class cartAddressDto {
    @Schema(description = "用户id")
    private Integer userId;
    @Schema(description = "省份")
    private String province;
    @Schema(description = "市区")
    private String city;
    @Schema(description = "区县")
    private String district;
    @Schema(description = "详细地址")
    private String detailAddress;
    @Schema(description = "收货人姓名")
    private String receiverName;
    @Schema(description = "收货人电话")
    @Size(min = 11,max = 11,message = "手机号长度必须为11位")
    private String receiverPhone;
    @Schema(description = "是否为默认")
    private Integer isDefault;


}
